package com.stox.ui.javafx.charting.widget.axis;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.stox.ui.javafx.charting.model.plot.AbstractPlot;
import com.stox.ui.javafx.charting.view.ChartingView;

@Component("volumeAxis")
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class VolumeAxis extends ValueAxis {
	
	private final ChartingView chartingView;
	
	public VolumeAxis(ChartingView chartingView) {
		this.chartingView = chartingView;
	}
	
	@Override
	public AbstractPlot<?, ?, ?, ?> getTargetPlot() {
		return chartingView.getVolumePlot();
	}

	@Override
	public String stringValueOf(double value) {
		return super.stringValueOf(value);
	}
}
